package com.bailian.spring.ioc.listener_01.listener;

import com.bailian.spring.ioc.listener_01.event.RegisterSuccessEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author gaoxu
 * date: Created on 2021/11/2 上午10:47
 */

@Component
public class SmsSenderListener implements ApplicationListener<RegisterSuccessEvent> {
    @Override
    public void onApplicationEvent(RegisterSuccessEvent event) {
        System.out.println("监听到用户注册成功,发送的短信...");
    }
}
